<?php
declare (strict_types=1);

namespace app\api\validate;

use think\Validate;

class UserAuth extends Validate
{
    protected $rule = [
        "real_name" => "require",
        "id_card" => "require|idCard",
        "img_front" => "require",
        "img_back" => "require"
    ];

    protected $message = [
        'real_name.require' => '请填写真实姓名',
        'id_card.require' => '请填写身份证号',
        'id_card.idCard' => '身份证号格式有误',
        'img_front.require' => '请上传身份证正面图',
        'img_back.require' => '请上传身份证反面图'
    ];
}